package com.leihao.marketing.mapper;

import com.leihao.marketing.domain.Preference;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PreferenceMapper {
    List<Preference> findAll();
    List<Preference> findList();
    Preference findById(@Param("preferenceId") Integer preferenceId);
    void add(Preference preference);
    void delete(@Param("preferenceId") Integer preferenceId);
    void update(Preference preference);

}
